﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Douban.Modules.Conversation.Views;
using Douban.Api.User;
using Microsoft.Practices.ServiceLocation;
using Douban.Api;
using Douban.Core;
using Microsoft.Practices.Composite.Regions;

namespace Douban.Modules.Conversation.ViewModels
{
    public class ContactInfoViewModel : IContactInfoViewModel
    {
        public ContactInfoViewModel(IContactInfoView view)
        {
            View = view;
            View.Context = this;
        }

        #region IContactInfoViewModel Members

        public IContactInfoView View { get; set; }

        public UserDetail Contact { get; set; }

        public string IconUri
        {
            get { return Contact.IconUri; }
        }

        public string Name
        {
            get { return Contact.Name; }
        }

        public string Signature
        {
            get { return Contact.Signature; }
        }

        #endregion
    }
}
